/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
// vim:sts=8:sw=8:ts=8:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s

/* Copyright (C) 2010 LinBox
 * Written by <brice.boyer@imag.fr>
 *
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */

#ifndef __LINBOX_integer_nullspace_H
#define __LINBOX_integer_nullspace_H

/** \file linbox/algorithms/NullspaceZ.h
 * The right or left nullspace of an integer matrix A.
 * Provides :
 *	- the nullspace of a matrix \p A
 *	- (soon) a random vector within the nullspace of \p A
 * @todo (unsigned) long, size_t ?
 */
#include "linbox/matrix/blas-matrix.h"
#include "linbox/integer.h"
#include "linbox/algorithms/linbox-tags.h"

// ou PID_Integer ?
namespace LinBox
{
	// generalize me
	enum Side
	{
		Left,
		Right
	};

	size_t IntegerNS(
			 DenseMatrix<PID_integer>        & N
			 // , integer                       & d
			 ,const DenseMatrix<PID_integer> & A
			 ,const LinBoxTag::Side          Side = LinBoxTag::Right
			);

	size_t IntegerNS(
			 BlasMatrix<Integer>             & N
			 // , integer                       & d
			 , const BlasMatrix<Integer>     & A
			 , const LinBoxTag::Side         Side = LinBoxTag::Right
			);
#if 0
	size_t IntegerNS(
			 DenseMatrix<PID_integer>        & N
			 // , std::vector<integer>          & d
			 ,const DenseMatrix<PID_integer> & A
			 ,const LinBoxTag::Side          Side = LinBoxTag::Right
			);

	size_t IntegerNS(
			 BlasMatrix<Integer>             & N
			 // , std::vector<integer>          & d
			 , const BlasMatrix<Integer>     & A
			 , const LinBoxTag::Side         Side = LinBoxTag::Right
			);
#endif
#if 0
	template<class IntegerMatrix>
	size_t IntegerNS( const DenseMatrix<Integer> & A, IntegerMatrix & N);
#endif


} // LinBox
#include "NullspaceZ.inl"
#endif //__LINBOX_integer_nullspace_H


